package com.ziyia.wim.pojo;



public class Msg {
    public static final Integer TYPE_RECEIVED = 0;
    public static final Integer TYPE_SENT = 1;
    private String username;
    private String content;
    private String group;
    private Integer type;

    public Msg() {
    }

    public Msg(String group, String username, String content, Integer type) {
        this.username = username;
        this.content = content;
        this.group = group;
        this.type = type;
    }

    public static Integer getTypeReceived() {
        return TYPE_RECEIVED;
    }

    public static Integer getTypeSent() {
        return TYPE_SENT;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Msg{" +
                "username='" + username + '\'' +
                ", content='" + content + '\'' +
                ", group='" + group + '\'' +
                ", type=" + type +
                '}';
    }
}
